package Strategy;

import Strategy.base.Add;
import Strategy.base.Sub;

public class StrategyPatternDemo {
   public static void main(String[] args) {
      Context context = new Context(new Add());
      System.out.println("10 + 5 = " + context.executeStrategy(10, 5));

      context = new Context(new Sub());
      System.out.println("10 - 5 = " + context.executeStrategy(10, 5));
   }
}
